package com.airnews.ticket.net.type;

import java.io.Serializable;

public class RequestCreditCard  implements  Serializable{
	private static final long serialVersionUID = -4108847977810226570L;
	/** AS编码 */
	private String asID;
	/** 时间戳，当前接口调用时间 */
	private String timeStamp;
	/** 登录密码 */
	private String userSign;
	/** 授权码 */
	private String officeSign;
	/** 用户快捷认证令牌 */
	private String asToken;
	/** 调用接口的服务类型 */
	private String serviceType;
	/** 支付平台类型 */
	private String PPPType;
	/** 支付订单号 */
	private String payOrders;
	/** 订单标题 */
	private String subject;
	/** 订单描述 */
	private String description;
	/** 订单预览地址链接 */
	private String productURL;
	/** 支付金额 */
	private String price;
	/** 支付帐户号 */
	private String buyerID;
	/** 支付帐号名称 */
	private String buyerName;
	/** 支付帐号 */
	private String buyerEmail;
	/** 支付帐号信息 */
	private String buyerInfo;
	/** 同步通知页面路径 */
	private String returnURL;
	/** 分润规则号 */
	private String royaltyNo;
	/** 支付信息 */
	private String paymentInfo;
	
	
	/**
	 * @return the asID
	 */
	public String getAsID() {
		return asID;
	}


	/**
	 * @param asID the asID to set
	 */
	public void setAsID(String asID) {
		this.asID = asID;
	}


	/**
	 * @return the timeStamp
	 */
	public String getTimeStamp() {
		return timeStamp;
	}


	/**
	 * @param timeStamp the timeStamp to set
	 */
	public void setTimeStamp(String timeStamp) {
		this.timeStamp = timeStamp;
	}


	/**
	 * @return the userSign
	 */
	public String getUserSign() {
		return userSign;
	}


	/**
	 * @param userSign the userSign to set
	 */
	public void setUserSign(String userSign) {
		this.userSign = userSign;
	}


	/**
	 * @return the officeSign
	 */
	public String getOfficeSign() {
		return officeSign;
	}


	/**
	 * @param officeSign the officeSign to set
	 */
	public void setOfficeSign(String officeSign) {
		this.officeSign = officeSign;
	}


	/**
	 * @return the asToken
	 */
	public String getAsToken() {
		return asToken;
	}


	/**
	 * @param asToken the asToken to set
	 */
	public void setAsToken(String asToken) {
		this.asToken = asToken;
	}


	/**
	 * @return the serviceType
	 */
	public String getServiceType() {
		return serviceType;
	}


	/**
	 * @param serviceType the serviceType to set
	 */
	public void setServiceType(String serviceType) {
		this.serviceType = serviceType;
	}


	/**
	 * @return the pPPType
	 */
	public String getPPPType() {
		return PPPType;
	}


	/**
	 * @param type the pPPType to set
	 */
	public void setPPPType(String type) {
		PPPType = type;
	}


	/**
	 * @return the payOrders
	 */
	public String getPayOrders() {
		return payOrders;
	}


	/**
	 * @param payOrders the payOrders to set
	 */
	public void setPayOrders(String payOrders) {
		this.payOrders = payOrders;
	}


	/**
	 * @return the subject
	 */
	public String getSubject() {
		return subject;
	}


	/**
	 * @param subject the subject to set
	 */
	public void setSubject(String subject) {
		this.subject = subject;
	}


	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}


	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}


	/**
	 * @return the productURL
	 */
	public String getProductURL() {
		return productURL;
	}


	/**
	 * @param productURL the productURL to set
	 */
	public void setProductURL(String productURL) {
		this.productURL = productURL;
	}


	/**
	 * @return the price
	 */
	public String getPrice() {
		return price;
	}


	/**
	 * @param price the price to set
	 */
	public void setPrice(String price) {
		this.price = price;
	}


	/**
	 * @return the buyerID
	 */
	public String getBuyerID() {
		return buyerID;
	}


	/**
	 * @param buyerID the buyerID to set
	 */
	public void setBuyerID(String buyerID) {
		this.buyerID = buyerID;
	}


	/**
	 * @return the buyerName
	 */
	public String getBuyerName() {
		return buyerName;
	}


	/**
	 * @param buyerName the buyerName to set
	 */
	public void setBuyerName(String buyerName) {
		this.buyerName = buyerName;
	}


	/**
	 * @return the buyerEmail
	 */
	public String getBuyerEmail() {
		return buyerEmail;
	}


	/**
	 * @param buyerEmail the buyerEmail to set
	 */
	public void setBuyerEmail(String buyerEmail) {
		this.buyerEmail = buyerEmail;
	}


	/**
	 * @return the buyerInfo
	 */
	public String getBuyerInfo() {
		return buyerInfo;
	}


	/**
	 * @param buyerInfo the buyerInfo to set
	 */
	public void setBuyerInfo(String buyerInfo) {
		this.buyerInfo = buyerInfo;
	}


	/**
	 * @return the returnURL
	 */
	public String getReturnURL() {
		return returnURL;
	}


	/**
	 * @param returnURL the returnURL to set
	 */
	public void setReturnURL(String returnURL) {
		this.returnURL = returnURL;
	}


	/**
	 * @return the royaltyNo
	 */
	public String getRoyaltyNo() {
		return royaltyNo;
	}


	/**
	 * @param royaltyNo the royaltyNo to set
	 */
	public void setRoyaltyNo(String royaltyNo) {
		this.royaltyNo = royaltyNo;
	}


//	public String getRequestData() {
//		StringBuffer sb = new StringBuffer();
//		sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>")
//		  .append("<soap12:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap12='http://www.w3.org/2003/05/soap-envelope'>")
//		  .append("<soap12:Body>")
//		  .append("<AirEXPayment xmlns='http://awp.airnews.com/'>")
//		  .append("<ASID>").append(this.asID).append("</ASID>")
//		  .append("<TimeStamp>").append(this.timeStamp).append("</TimeStamp>")
//		  .append("<UserSign>").append(this.userSign).append("</UserSign>")
//		  .append("<OfficeSign>").append(this.officeSign).append("</OfficeSign>")
//		  .append("<ASToken>").append(this.asToken).append("</ASToken>")
//		  .append("<ServiceType>").append(this.serviceType).append("</ServiceType>")
//		  .append("<PPPType>").append(this.PPPType).append("</PPPType>");
//		sb.append("<PaymentInfo>")
//			  .append("<PayOrders>").append(this.payOrders == null ? "" : this.payOrders).append("</PayOrders>")
//			  .append("<Subject>").append(this.subject == null ? "" : this.subject).append("</Subject>")
//			  .append("<Description>").append(this.description == null ? "" : this.description).append("</Description>")
//			  .append("<ProductURL>").append(this.productURL == null ? "" : this.productURL).append("</ProductURL>")
//			  .append("<Price>").append(this.price == null ? "" : this.price).append("</Price>")
//			  .append("<BuyerID>").append(this.buyerID == null ? "" : this.buyerID).append("</BuyerID>")
//			  .append("<BuyerName>").append(this.buyerName == null ? "" : this.buyerName).append("</BuyerName>")
//			  .append("<BuyerEmail>").append(this.buyerEmail == null ? "" : this.buyerEmail).append("</BuyerEmail>");
//		sb.append("</PaymentInfo>");
//		sb.append("<RoyaltyNo>").append(this.royaltyNo).append("</RoyaltyNo>");
//		sb.append("<Return_URL>").append(this.returnURL == null ? "" : this.returnURL).append("</Return_URL>");
//		sb.append("</AirEXPayment>");
//		sb.append("</soap12:Body>");
//		sb.append("</soap12:Envelope>");
//		return sb.toString();
//	}
	public String getRequestData() {
		StringBuffer sb = new StringBuffer();
		sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>")
		  .append("<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:asp='http://asp.airnews.com/'>")
		  .append("<soapenv:Header/>")
		  .append("<soapenv:Body>")
		  .append("<asp:AirEXPayment>")
		  .append("<asp:ASID>").append(this.asID).append("</asp:ASID>")
		  .append("<asp:TimeStamp>").append(this.timeStamp).append("</asp:TimeStamp>")
		  .append("<asp:UserSign>").append(this.userSign).append("</asp:UserSign>")
		  .append("<asp:OfficeSign>").append(this.officeSign).append("</asp:OfficeSign>")
		  .append("<asp:ASToken>").append(this.asToken).append("</asp:ASToken>")
		  .append("<asp:ServiceType>").append(this.serviceType).append("</asp:ServiceType>")
		  .append("<asp:PPPType>").append(this.PPPType).append("</asp:PPPType>");
		sb.append("<asp:PaymentInfo>")
			  .append("<asp:PayOrders>").append(this.payOrders == null ? "" : this.payOrders).append("</asp:PayOrders>")
			  .append("<asp:Subject>").append(this.subject == null ? "" : this.subject).append("</asp:Subject>")
			  .append("<asp:Description>").append(this.description == null ? "" : this.description).append("</asp:Description>")
			  .append("<asp:ProductURL>").append(this.productURL == null ? "" : this.productURL).append("</asp:ProductURL>")
			  .append("<asp:Price>").append(this.price == null ? "" : this.price).append("</asp:Price>")
			  .append("<asp:BuyerID>").append(this.buyerID == null ? "" : this.buyerID).append("</asp:BuyerID>")
			  .append("<asp:BuyerName>").append(this.buyerName == null ? "" : this.buyerName).append("</asp:BuyerName>")
			  .append("<asp:BuyerEmail>").append(this.buyerEmail == null ? "" : this.buyerEmail).append("</asp:BuyerEmail>");
		sb.append("</asp:PaymentInfo>");
		sb.append("<asp:RoyaltyNo>").append(this.royaltyNo).append("</asp:RoyaltyNo>");
		sb.append("<asp:Return_URL>").append(this.returnURL == null ? "" : this.returnURL).append("</asp:Return_URL>");
		sb.append("</asp:AirEXPayment>");
		sb.append("</soapenv:Body>");
		sb.append("</soapenv:Envelope>");
		return sb.toString();
	}	
	
}
